package com.jia.leetCode;

/**
 * 1480.一维数组的动态和
 *
 *
 */
public class Pro1480 {
    public int[] runningSum(int[] nums) {
        int sum = 0;
        for(int i = 0; i < nums.length; i++) {
            sum += nums[i];
            nums[i] = sum;
        }
        return nums;
    }
}
